﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="Sys_Notice_Edit.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Log.Sys_Notice_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtID.UniqueID%>:{required: true,maxlength: 36},
					<%= ddlNoticeType.UniqueID%>:{required: true},
					<%= txtTitle.UniqueID%>:{required: true,maxlength: 200},
					<%= dtpCreateTime.UniqueID%>:{required: true,date: true},
					<%= txtUserID.UniqueID%>:{required: true,maxlength: 36},
					<%= txtUserName.UniqueID%>:{required: true,maxlength: 200}					
                 },
                 messages:
                 {
					<%= txtID.UniqueID%>:{required: "标识 请输入合适的值",maxlength: "标识 最多只能输入36个字符"},
					<%= ddlNoticeType.UniqueID%>:{required: "公告类型 请选择合适的值"},
					<%= txtTitle.UniqueID%>:{required: "主题 请输入合适的值",maxlength: "主题 最多只能输入200个字符"},
					<%= dtpCreateTime.UniqueID%>:{required: "公告时间 请选择合适的值",date: "公告时间 请选择有效的日期"},
					<%= txtUserID.UniqueID%>:{required: "发布人标识 请输入合适的值",maxlength: "发布人标识 最多只能输入36个字符"},
					<%= txtUserName.UniqueID%>:{required: "发布人姓名 请输入合适的值",maxlength: "发布人姓名 最多只能输入200个字符"}					
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">系统公告维护</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:80px;" class="title1">标识</td>
			<td><asp:TextBox ID="txtID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
			<td style="width:80px;" class="title1">公告类型</td>
			<td><asp:DropDownList ID="ddlNoticeType" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
		</tr>
		<tr>
			<td class="title1">关联数据标识</td>
			<td><asp:TextBox ID="txtDataID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
			<td class="title1">关联页面地址</td>
			<td><asp:TextBox ID="txtUrl" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">主题</td>
			<td><asp:TextBox ID="txtTitle" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td class="title1">内容</td>
			<td><asp:TextBox ID="txtContent" runat="server"  cssClass="input2" MaxLength="16" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">公告时间</td>
			<td><asp:TextBox ID="dtpCreateTime" runat="server" cssClass="input2" onfocus="setday(this);" Width="96%"></asp:TextBox></td>
			<td class="title1">发布人标识</td>
			<td><asp:TextBox ID="txtUserID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
		</tr>
		<tr>
			<td class="title1">发布人姓名</td>
			<td><asp:TextBox ID="txtUserName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
			<td></td><td></td>
		</tr>
        </table>
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


